package org.x.usermod.service;


import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import jakarta.validation.Valid;
import org.x.commonmod.config.Result;
import org.x.usermod.dto.*;
import org.x.usermod.entity.SysRole;
import org.x.usermod.vo.SysRoleVo;

import java.util.List;

/**
 * 用户角色关联表 服务层。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
public interface ISysRoleService extends IService<SysRole> {

    Page<SysRoleVo> pageList(SysRoleListDto sysRoleListDto);

    int update(@Valid SysRoleListUpdateDTO sysRoleListUpdateDTO);

    Result removeById(Integer id);

    String save(@Valid SysRoleListSaveDTO sysRoleListSaveDTO);

    List<SysRole> allList(SysRoleDTO sysRoleDTO);
}